<?php
/*
 |--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

// Route::get('/admin/index','Admin\IndexController@index');

//路由组
Route::group(['namespace'=>'Admin','prefix'=>'admin'],function(){
	
	Route::get('admin','AdminController@index');
	
	//用户相关
	Route::resource('user','UserController');
	
	//个人删除
	Route::get('delete','UserController@delete');
	
	
	//栏目相关
	Route::resource('type','TypeController');
	
	//删除单个栏目
	Route::get('cancel','TypeController@delete');
	
	
	
});